#ifndef __HAL_TIME_H
#define __HAL_TIME_H

#include "main.h"

extern void HAL_ATIM_PUMPCallback(void);        //定时器1 //1ms 水箱水泵和热罐水泵
extern void HAL_ATIM_PIDCallback(void);        //100us PID运行   20ms  1/50Hz   半个周期就是10ms
extern void OnSetWaterDuty(uint16_t duty);
extern void OnSetHeatDuty(uint16_t duty);
extern void OnSetSpeedDuty(uint16_t duty);//设置速热功率占空比

extern void OnSetSpeedEn(void);
extern void OnSetSpeedDisable(void);

extern uint16_t OnReadWaterDuty(void);//水箱水泵占空比
extern uint16_t OnReadHeatDuty(void);//热罐水泵占空比
extern uint16_t OnReadSpeedDuty(void);//速热占空比
extern uint16_t OnReadSpeedStatus(void);//是否开启
#endif

